﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Student.Master" AutoEventWireup="true" CodeBehind="Students_ChangePassword.aspx.cs" Inherits="TeamNitro.Student.Students_ChangePassword" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            width: 484px;
            height: 53px;
        }
        .style4
        {
            width: 194px;
            height: 102px;
        }
        .style5
        {
            height: 102px;
        }
        .style8
        {
            width: 172px;
            height: 30px;
        }
        .style9
        {
            height: 30px;
        }
        .style10
        {
            width: 100%;
            height: 55px;
        }
        .style11
        {
            width: 40px;
            height: 102px;
        }
        .style12
        {
            width: 40px;
            height: 53px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width:100%; height: 304px;">
        <tr>
            <td class="style12" 
                style="font-family: Arial, Helvetica, sans-serif; font-size: medium">
                &nbsp;</td>
            <td class="style2" colspan="2" 
                style="font-family: Arial, Helvetica, sans-serif; font-size: medium">
                <h2>
                    <asp:Label ID="Label1" runat="server" Text="Change Password"></asp:Label>
                </h2>
            </td>
        </tr>
        <tr>
            <td class="style11" 
                style="font-family: Arial, Helvetica, sans-serif; font-size: medium">
                &nbsp;</td>
            <td class="style4" 
                style="font-family: Arial, Helvetica, sans-serif; font-size: medium">
                <table class="style10">
                    <tr>
                        <td class="style9">
                            <asp:LinkButton ID="LinkButton4" runat="server" 
                                PostBackUrl="~/Student/Students_EditProfile.aspx" ForeColor="#6699FF">Edit Profile</asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td class="style9">
                            <asp:LinkButton ID="LinkButton2" runat="server" 
                                PostBackUrl="~/Student/Students_ChangePassword.aspx" ForeColor="#6699FF">Change Password</asp:LinkButton>
                        </td>
                    </tr>
                    <tr>
                        <td class="style9">
                            <asp:LinkButton ID="LinkButton3" runat="server" 
                                PostBackUrl="~/Student/Students_CurrentSubjects.aspx" ForeColor="#6699FF">Current Subjects</asp:LinkButton>
                        </td>
                    </tr>
                </table>
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
                <br />
            </td>
            <td class="style5" 
                style="font-family: Arial, Helvetica, sans-serif; font-size: medium">
                <asp:Panel ID="cPasswordPanel" runat="server" BackColor="#FFFFCC" 
                    Height="244px" Width="598px">
                    <table style="width: 100%; height: 118px;">
                        <tr>
                            <td class="style8">
                                <asp:Label ID="Label13" runat="server" Text="Old Password"></asp:Label>
                            </td>
                            <td class="style9">
                                &nbsp; &nbsp;<asp:TextBox ID="tbxOldPassword" runat="server" Height="25px" 
                                    Width="210px" TextMode="Password"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style8">
                                <asp:Label ID="Label16" runat="server" Text="New Password"></asp:Label>
                            </td>
                            <td class="style9">
                                &nbsp; &nbsp;<asp:TextBox ID="tbxNewPassword" runat="server" Height="25px" 
                                    Width="210px" TextMode="Password"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style8">
                                <asp:Label ID="Label17" runat="server" Text="Confirm New Password"></asp:Label>
                            </td>
                            <td class="style9">
                                &nbsp; &nbsp;<asp:TextBox ID="tbxConfirmPassword" runat="server" Height="25px" 
                                    Width="210px" TextMode="Password"></asp:TextBox>
                                &nbsp;
                                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                    ControlToCompare="tbxNewPassword" ControlToValidate="tbxConfirmPassword" 
                                    ErrorMessage="Password Not Match" ForeColor="Red"></asp:CompareValidator>
                            </td>
                        </tr>
                    </table>
                    &nbsp;<br />
                    <asp:Label ID="lblPassResult" runat="server" ForeColor="Lime" Visible="False">Your Password has changed successfully</asp:Label>
                    <br />
                    <br />
                    <asp:Button ID="btnPassChange" runat="server" Height="34px" Text="Submit" 
                        Width="72px" onclick="btnPassChange_Click" />
                    &nbsp;
                    <asp:Button ID="btnPassReset" runat="server" Height="34px" Text="Reset" 
                        Width="72px" onclick="btnPassReset_Click" />
                    <br />
&nbsp;<br />
                    <br />
                    <br />
                    <br />
                    <br />
                </asp:Panel>
                <br />
                <br />
                <br />
            </td>
        </tr>
    </table>
</asp:Content>

